import React from "react"
import ReactDOM from "react-dom/client"
import { RouterProvider } from "react-router-dom"
import { ConfigProvider } from "antd"
import "./styles/index.scss"
import router from "./routes"

ReactDOM.createRoot(document.getElementById("root")!).render(
  <React.StrictMode>
    {/* antd 自定义主题：https://ant.design/docs/react/customize-theme-cn#%E5%9F%BA%E7%A1%80%E5%8F%98%E9%87%8Fseed-token */}
    <ConfigProvider
      theme={{
        token: {
          colorPrimary: '#4A80F1', // 主色
          // borderRadius: 2, // 圆角

          // 派生变量，影响范围小
          // colorBgContainer: '#f6ffed',
        },
      }}
    >
      <RouterProvider router={router} />
    </ConfigProvider>
    
  </React.StrictMode>
)
